<!DOCTYPE html>
<html>
<head>
	<div th:include="base-libs-easyui :: base-libs-easyui" />
<title>医疗机构人员信息</title>
<style type="text/css">
	body {
		padding: 0px 10px;
	}
	.form-table{
		width: 1143px;
		padding: 0px auto;
	}
	.layui-table{
		width: 1143px;
		margin: 2px auto;
	}
	.form-table input{
		width: 206px;
		padding-left: 4px;
	}
	.form-table select{
		width: 210px!important;
	}
	.td-text{
		width: 150px!important;
	}
</style>
</head>
<script th:inline="javascript">
    /**读取request中的初始化数据*/
    var requestData = [[${requestData}]];
    var managerYljgryxx = [[${managerYljgryxx}]];
</script>
<script type="text/javascript">
	$(function() {
		initView();
        $(this).registerManagerPage({
            cacheTables: ["TB_ZY_PRACTICE_FW"]
            ,callback: initData
        });
	});

	function initData(cacheData) {
        /*执业范围初始化数据*/
        $("#PRACTICE_FWDMS").combobox("loadData", cacheData["TB_ZY_PRACTICE_FW"]);
        if(managerYljgryxx)
        {
            $("#formYljgry").data("yljgry", managerYljgryxx);
			/*修改禁用医疗机构下拉框*/
            $("#combogridYljg").combogrid("readonly", true);
            queryKsxx(managerYljgryxx["PTJGID"], setData);
        }else if(!requestData["isManager"]){
                var PTJGID = requestData["PTJGID"];
                var YLJGMC = requestData["YLJGMC"];
                var value = {PTJGID: PTJGID, YLJGMC: YLJGMC};
                $("#combogridYljg").combogrid("grid").datagrid("loadData", [value]);
                $("#combogridYljg").combogrid("setValue", value);
		}
	}

	function setData(){
	    var yljgry = managerYljgryxx;
        $(".form-control").each(function(){
            var name = $(this).attr("name");
            var value = yljgry[name];
            $(this).QuickField("setData", value);
        })
		/*医疗机构赋值*/
		$("#combogridYljg").combogrid("setValue", {PTJGID: yljgry["PTJGID"], YLJGMC: yljgry["YLJGMC"]});
		/*执业范围赋值*/
        $("#PRACTICE_FWDMS").combobox("setValues", managerYljgryxx["PRACTICE_FWDM"].split(","));
		/*静默触发是否多点执业下拉框改变事件*/
        $("#PRACTICE_DDZY").trigger("change", {slience: true});
        /*创建多点执业机构信息*/
        var ddzyxxAry = managerYljgryxx["ddzyxx"];
        if(ddzyxxAry){
            $.each(ddzyxxAry, function(index, item){
                createDdzyxx(item);
            })
		}
	}

	function initView() {
		$("#formYljgry").attr("action", contextRoot + "/yljgry/saveYljgry");
        $("#btnSave").on("click", btnSaveHandler);
        $("#btnBack").on("click", btnBackHandler);

        var readonly = !requestData["isManager"];
        $("#combogridYljg").combogrid({
            height: 30
            ,panelWidth: 500
            ,singleSelect: true
            ,pagination: true
            ,idField: 'PTJGID'
            ,textField: 'YLJGMC'
            ,mode: "remote"
            ,url: contextRoot + "/yljgxx/queryPageSummary.service"
			,readonly: readonly
            ,hasDownArrow: !readonly
			,delay: 1000
            ,reversed: true
            ,columns:[[
                {
                    field:'YLJGMC'
                    ,title:'机构名称'
                    ,width:240
                }
                ,{
                    field:'XZQHMC'
                    ,title:'行政区划'
                    ,width:80
                }
                ,{
                    field:'WSJGLBMC'
                    ,title:'机构类别'
                    ,width:80
                }
                ,{
                    field:'YYDJMC'
                    ,title:'机构等级'
                    ,width:80
                }
            ]]
            ,onBeforeLoad: function(queryParams) {
                var url = $(this).datagrid("options")["url"];
				/*URL不等空时再发送请求*/
                if (!StringUtils.isEmpty(url)) {
                    queryParams["pageSize"] = queryParams["rows"];
                    queryParams["pageNumber"] = queryParams["page"];
                    queryParams["YLJGMC"] = queryParams["q"];
                    return true;
                }else{
                    return false;
                }
            }
			,onChange: function(newValue, oldValue){
                /*新增响应改变事件*/
                if(!$("#formYljgry").data("yljgry")){
                    var value = $("#combogridYljg").combogrid("grid").datagrid("getSelected");
                    if(!value){
                        $("#KS").empty();
                    }else if(value["PTJGID"] != oldValue){
                        $("#KS").empty();
                        queryKsxx(value["PTJGID"]);
                        $("#PTJGID").val(value["PTJGID"]);
                        $("#YLJGDM").val(value["YLJGDM"]);
                    }
				}
			}
        });
        layui.use('laydate', function(){
            var laydate = layui.laydate;
            var start = {
                max: laydate.now()
				,min: '1900-01-01 23:59:59'
                ,istoday: false
            };
            document.getElementById('CSRQ').onclick = function(){
                start.elem = this;
                laydate(start);
            };
            document.getElementById('BYRQ').onclick = function(){
                start.elem = this;
                laydate(start);
            }
            document.getElementById('CJGZRQ').onclick = function(){
                start.elem = this;
                laydate(start);
            }
            document.getElementById('DBDWRQ').onclick = function(){
                start.elem = this;
                laydate(start);
            }
		})
		/**执业范围*/
		$("#PRACTICE_FWDMS").combobox({
            valueField: 'XMDM'
            ,textField: 'XMMC'
			,panelWidth: 400
			,height: 30
			,width: 591
			,reversed: true
			,multiple:true
			,separator: " "
		});
		/*多点执业下拉框改变回调*/
		$("#PRACTICE_DDZY").on("change", ddzyChangeHandler);
		/*添加多点执业机构回调*/
		$("#btnAddDdzy").on("click", addDdzyHandler);
		/*多点执业表格操作按钮回调*/
		$("body").on("click", ".tableToolBarBtn", btnTableHandler);
        $("#btnAddDdzy").hide();
	}

	/**查询科室信息*/
	function queryKsxx(PTJGID, callback){
		$.QuickRemote.AjaxJson(contextRoot + "/ksxx/", queryKsxxHandler, {PTJGID: PTJGID}, {callback: callback});
	}
	function queryKsxxHandler(result, params){
        $("#KS").createOptions(result, {needNull: "true", textField: "KSMC", valueField: "KSDM"});
        if(params && params["callback"]){
            params["callback"]();
		}
	}

	function btnSaveHandler(){
        if(validate() && $(".form-control").QuickValidate())
        {
            var params = {};
            /*多点执业机构信息*/
            var ddzyxx = getDdzyxx();
            params["ddzyxx"] = JSON.stringify(ddzyxx);
            /*执业范围*/
            var PRACTICE_FWDM = $("#PRACTICE_FWDMS").combobox("getValues");
            PRACTICE_FWDM = PRACTICE_FWDM.join(",");
            params["PRACTICE_FWDM"] = PRACTICE_FWDM;
            $.QuickRemote.AjaxFiledFormSubmit("formYljgry", saveHandler, params);
        }
	}
	function saveHandler(result){
        var state = result["state"];
        if(state)
        {
            $.QuickAlert.alertNormal("保存成功", {callback: function(){
                $("#btnBack").trigger("click");
            }});
        }
        else
        {
            var info = result["info"];
            $.QuickAlert.alertFail({content: info["faultInfo"]});
        }
	}
	function validate(){
        var ptjgid = $("#combogridYljg").combobox("getValue");
        if(StringUtils.isEmpty(ptjgid)){
            $.QuickAlert.alertFail({content: "请选择机构"});
            return false;
		}else{
            return true;
		}
	}

	/**获取多点执业信息*/
	function getDdzyxx(){
	    var ary = [];
        $("#tableDdzyBody").find("tr").each(function(){
            var data = $(this).data();
            delete data["trIndex"];
            var ddzy = $.extend({}, data);
            ddzy["PRACTICE_JGID"] = ddzy["PTJGID"];
            ddzy["XH"] = $(this).index()+"";
            ary.push(ddzy);
		})
		return ary;
	}

	/**返回按钮*/
	function btnBackHandler() {
//		location = contextRoot + "/yljgry/index.html";
        $.QuickUrlUtils.back();
	}

    /**多点执业改变回调*/
    function ddzyChangeHandler(evt, params){
		var value = $("#PRACTICE_DDZY").val();
		if("0" == value){
            if(params && params["slience"]){
                $("#btnAddDdzy").hide();
                $("#tableDdzyBody").empty();
            }else{
                $.QuickAlert.alertConfirm({
                    content: "是否清空多点执业信息"
                    ,callback: function(){
                        $("#btnAddDdzy").hide();
                        $("#tableDdzyBody").empty();
                    }
                    ,btn2: function(){
                        $("#PRACTICE_DDZY").val(1);
					}
                });
			}
		}else{
			$("#btnAddDdzy").show();
		}
    }

	/**添加执业机构回调*/
	function addDdzyHandler(){
        parent.layer.open({
            type: 2,
            shade: 0.8,
            area: ['700px', '500px'],
            content: contextRoot + '/yljgry/editZyjg.html'
            ,cancel: function(index){
                $.QuickAlert.alertConfirm({
                    content: "关闭窗口不会保存当前信息，是否关闭"
                    ,callback: function(){
                        parent.layer.closeAll();
                    }
                });
                return false;
			}
			,end: function(){
				var ddzyxx = StoreCache.removeCache("cache_ddzdxx");
				if(ddzyxx){
                    var trIndex = ddzyxx["trIndex"];
                    if($.isNumeric(trIndex)){
                        delete ddzyxx["trIndex"];
						updateDdzyxx(trIndex, ddzyxx);
					}else{
                        createDdzyxx(ddzyxx);
					}
				}
			}
        });
	}

	/**创建多点执业信息行*/
	function createDdzyxx(ddzyxx){
		var ddzyxxTr = $($("#ddzyxxTr").html());
        $(ddzyxxTr).data(ddzyxx);
		$(ddzyxxTr).find("td[field!='']").each(function(){
		    var field = $(this).attr("field");
		    var value = ddzyxx[field];
		    $(this).text(value);
		})
		$("#tableDdzyBody").append(ddzyxxTr);
	}

	/**修改多点执业行*/
	function updateDdzyxx(trIndex, ddzyxx){
		var ddzyxxTr = $("#tableDdzyBody").find("tr:eq("+trIndex+")");
        $(ddzyxxTr).data(ddzyxx);
        $(ddzyxxTr).find("td[field!='']").each(function(){
            var field = $(this).attr("field");
            var value = ddzyxx[field];
            $(this).text(value);
        })
	}

	function btnTableHandler(){
	    var tr = $(this).parents("tr");
	    var ddzyxx = $(tr).data();
		var action = $(this).attr("action");
		if("update" == action){
		    var trIndex = $(tr).index();
            ddzyxx["trIndex"] = trIndex;
            StoreCache.setCache("cache_ddzdxx", ddzyxx);
            addDdzyHandler();
		}else if("delete" == action){
            $.QuickAlert.alertConfirm({
                content: "是否删除该条记录"
                ,callback: function(){
                    tr.remove();
                }
            });
		}
	}
</script>

<body class="easyui-layout">
<div region="north" style="height: 41px; border: none; overflow: hidden; background-color: #f9f9f9;">
	<div class="title">
		<h3>机构机构人员信息</h3>
	</div>
</div>
<div region="center" style="border: none;">
	<div class="easyui-layout" fit="true" style="border: none">
		<div region="north" style="height: 41px; padding-top: 6px;">
			<button id="btnBack" type="button" style=" margin-left: 10px;">返回</button>
			<button id="btnSave" type="button" style=" margin-left: 10px;">保存</button>
		</div>
		<div region="center" style="border: none">
			<form id="formYljgry">
				<div title="人员基本信息" class="easyui-panel" data-options="collapsible:true" style="border-top: none; ">
					<table class="form-table">
						<tr>
							<td class="td-text">
								<label>机构名称</label>
							</td>
							<td class="td-content">
								<input id="combogridYljg" class="form-control" name="PTJGID"
									   quick-config="label:'机构名称', validateProxy:'notNull length', length: '64'">
								<input id="USERID" name="USERID" class="form-control" style="display: none;">
								<input id="YLJGDM" name="YLJGDM" class="form-control" style="display: none;">
							</td>
							<td class="td-text">
								<label>科室</label>
							</td>
							<td class="td-content">
								<select id="KS" name="KSDM" class="form-control"
										quick-config="label:'科室', validateProxy:'notNull length', length: '64'">
								</select>
							</td>
							<td class="td-text">
								<label>医生工号</label>
							</td>
							<td class="td-content">
								<input id="YSGH" name="YSGH" type="text" placeholder="医生工号"
									   quick-config="label:'医生工号', validateProxy:'notNull length', length: '64'"
									   class="form-control">
							</td>
						</tr>
						<tr>
							<td class="td-text">
								<label>姓名</label>
							</td>
							<td class="td-content">
								<input id="XM" name="XM" type="text" placeholder="姓名"
									   quick-config="label:'姓名', validateProxy:'notNull length', length: '20'"
									   class="form-control">
							</td>
							<td class="td-text">
								<label>性别</label>
							</td>
							<td class="td-content">
								<select name="XB" class="form-control" cacheTable="TB_ZY_XB"
										quick-config="label:'性别', validateProxy:'notNull length', length: '10'">
								</select>
							</td>
							<td class="td-text">
								<label>身份证号</label>
							</td>
							<td class="td-content">
								<input id="SFZH" name="SFZH" type="text" placeholder="身份证号"
									   quick-config="label:'身份证号', validateProxy:'notNull length', length: '20'"
									   class="form-control">
							</td>
						</tr>
						<tr>
							<td class="td-text">
								<label>出生日期</label>
							</td>
							<td class="td-content">
								<input id="CSRQ" name="CSRQ" placeholder="出生日期" style="width: 210px; height: 30px;"
									   quick-config="label:'出生日期', validateProxy:'length', length: '20'"
									   class="layui-input form-control">
							</td>
							<td class="td-text">
								<label>民族</label>
							</td>
							<td class="td-content">
								<select name="MZ" class="form-control" cacheTable="TB_ZY_MZ"
										quick-config="label:'民族', validateProxy:'length', length: '20'">
								</select>
							</td>
							<td class="td-text">
								<label>籍贯</label>
							</td>
							<td class="td-content">
								<input name="JG" type="text" placeholder="籍贯"
									   quick-config="label:'籍贯', validateProxy:'length', length: '20'"
									   class="form-control">
							</td>
						</tr>
						<tr>
							<td class="td-text">
								<label>党派</label>
							</td>
							<td class="td-content">
								<select name="DPDM" class="form-control" cacheTable="TB_ZY_DP"
										quick-config="label:'党派', validateProxy:'length', length: '2'">
								</select>
							</td>
							<td class="td-text">
								<label>婚姻状况</label>
							</td>
							<td class="td-content">
								<select name="HYZKDM" class="form-control" cacheTable="TB_ZY_HYZK"
										quick-config="label:'婚姻状况', validateProxy:'length', length: '2'">
								</select>
							</td>
							<td class="td-text">
								<label>最高学历</label>
							</td>
							<td class="td-content">
								<select name="ZGXLDM" class="form-control" cacheTable="TB_ZY_XL"
										quick-config="label:'最高学历', validateProxy:'length', length: '2'">
								</select>
							</td>
						</tr>
						<tr>
							<td class="td-text">
								<label>最高学位</label>
							</td>
							<td class="td-content">
								<select name="ZGXWDM" class="form-control" cacheTable="TB_ZY_XW"
										quick-config="label:'最高学位', validateProxy:'length', length: '2'">
								</select>
							</td>
							<td class="td-text">
								<label>毕业学校</label>
							</td>
							<td class="td-content">
								<input name="BYXX" type="text" placeholder="毕业学校"
									   quick-config="label:'毕业学校', validateProxy:'length', length: '50'"
									   class="form-control">
							</td>
							<td class="td-text">
								<label>毕业日期</label>
							</td>
							<td class="td-content">
								<input id="BYRQ" name="BYRQ" placeholder="毕业日期" style="width: 210px; height: 30px;"
									   quick-config="label:'毕业日期', validateProxy:'length', length: '10'"
									   class="layui-input form-control">
							</td>
						</tr>
						<tr>
							<td class="td-text">
								<label>专业名称</label>
							</td>
							<td class="td-content">
								<input name="SXZYMC" type="text" placeholder="专业名称"
									   quick-config="label:'专业名称', validateProxy:'length', length: '30'"
									   class="form-control">
							</td>
							<td class="td-text">
								<label>职称</label>
							</td>
							<td class="td-content">
								<select name="ZC" class="form-control" cacheTable="TB_ZY_ZC"
										quick-config="label:'职称', validateProxy:'notNull length', length: '6'">
								</select>
							</td>
							<td class="td-text">
								<label>职务</label>
							</td>
							<td class="td-content">
								<select name="ZW" class="form-control" cacheTable="TB_ZY_ZW"
										quick-config="label:'职务', validateProxy:'notNull length', length: '6'">
								</select>
							</td>
						</tr>
						<tr>
							<td class="td-text">
								<label>参加工作日期</label>
							</td>
							<td class="td-content">
								<input id="CJGZRQ" name="CJGZRQ" placeholder="参加工作日期" style="width: 210px; height: 30px;"
									   quick-config="label:'参加工作日期', validateProxy:'length', length: '10'"
									   class="layui-input form-control">
							</td>
							<td class="td-text">
								<label>到本单位日期</label>
							</td>
							<td class="td-content">
								<input id="DBDWRQ" name="DBDWRQ" placeholder="到本单位日期" style="width: 210px; height: 30px;"
									   quick-config="label:'到本单位日期', validateProxy:'length', length: '10'"
									   class="layui-input form-control">
							</td>
							<td class="td-text">
								<label>从事工种</label>
							</td>
							<td class="td-content">
								<input name="CSGZ" type="text" placeholder="从事工种"
									   quick-config="label:'从事工种', validateProxy:'length', length: '30'"
									   class="form-control">
							</td>
						</tr>
						<tr>
							<td class="td-text">
								<label>工作证号</label>
							</td>
							<td class="td-content">
								<input name="GZZH" type="text" placeholder="工作证号"
									   quick-config="label:'工作证号', validateProxy:'length', length: '20'"
									   class="form-control">
							</td>
							<td class="td-text">
								<label>胸牌号</label>
							</td>
							<td class="td-content">
								<input name="XPH" type="text" placeholder="胸牌号"
									   quick-config="label:'胸牌号', validateProxy:'length', length: '20'"
									   class="form-control">
							</td>
							<td class="td-text">
								<label>职工分类标志</label>
							</td>
							<td class="td-content">
								<select name="ZGFLBZ" class="form-control" cacheTable="TB_ZY_ZGFL"
										quick-config="label:'职工分类标志', validateProxy:'length', length: '2'">
								</select>
							</td>
						</tr>
					</table>
				</div>
				<div title="联系方式" class="easyui-panel" data-options="collapsible:true" style="border-top: none;">
					<table class="form-table">
						<tr>
							<td class="td-text">
								<label>办公室电话</label>
							</td>
							<td class="td-content">
								<input name="BGSDH" type="text" placeholder="办公室电话"
									   quick-config="label:'办公室电话', validateProxy:'length', length: '20'"
									   class="form-control">
							</td>
							<td class="td-text">
								<label>办公室传真</label>
							</td>
							<td class="td-content">
								<input name="BGSCZ" type="text" placeholder="办公室传真"
									   quick-config="label:'办公室传真', validateProxy:'length', length: '20'"
									   class="form-control">
							</td>
							<td class="td-text">
								<label>手机号码</label>
							</td>
							<td class="td-content">
								<input name="SJHM" type="text" placeholder="手机号码"
									   quick-config="label:'手机号码', validateProxy:'length', length: '11'"
									   class="form-control">
							</td>
						</tr>
						<tr>
							<td class="td-text">
								<label>住宅电话</label>
							</td>
							<td class="td-content">
								<input name="ZZDH" type="text" placeholder="住宅电话"
									   quick-config="label:'住宅电话', validateProxy:'length', length: '20'"
									   class="form-control">
							</td>
							<td class="td-text">
								<label>电子邮箱</label>
							</td>
							<td class="td-content">
								<input name="DZYX" type="text" placeholder="电子邮箱"
									   quick-config="label:'电子邮箱', validateProxy:'length', length: '20'"
									   class="form-control">
							</td>
							<td class="td-text">
								<label>邮政编码</label>
							</td>
							<td class="td-content">
								<input name="YZBM" type="text" placeholder="邮政编码"
									   quick-config="label:'邮政编码', validateProxy:'length', length: '20'"
									   class="form-control">
							</td>
						</tr>
						<tr>
							<td class="td-text">
								<label>家庭地址</label>
							</td>
							<td class="td-content" colspan="5">
							<input name="JTDZ" type="text" placeholder="家庭地址" style="width: 966px;"
									  quick-config="label:'家庭地址', validateProxy:'length', length: '500'"
									  class="form-control">
							</td>
						</tr>
					</table>
				</div>
				<div title="职业背景" class="easyui-panel" data-options="collapsible:true" style="border-top: none; ">
					<table class="form-table">
						<tr>
							<td class="td-text">
								<label>岗位名称</label>
							</td>
							<td class="td-content">
								<select name="GWMCDM" class="form-control" cacheTable="TB_ZY_GWMC"
										quick-config="label:'岗位名称', validateProxy:'notNull length', length: '2'">
								</select>
							</td>
							<td class="td-text">
								<label>岗位类别</label>
							</td>
							<td class="td-content">
								<select name="GWLBDM" class="form-control" cacheTable="TB_ZY_GWLB"
										quick-config="label:'岗位类别', validateProxy:'notNull length', length: '2'">
								</select>
							</td>
							<td class="td-text">
								<label>岗位编码</label>
							</td>
							<td class="td-content">
								<select name="GWBM" class="form-control" cacheTable="TB_ZY_GWBM"
										quick-config="label:'岗位编码', validateProxy:'length', length: '2'">
								</select>
							</td>
						</tr>
						<tr>
							<td class="td-text">
								<label>人员身份</label>
							</td>
							<td class="td-content">
								<select name="RYSFDM" class="form-control" cacheTable="TB_ZY_RYSF"
										quick-config="label:'人员身份', validateProxy:'length', length: '2'">
								</select>
							</td>
							<td class="td-text">
								<label>身份编制</label>
							</td>
							<td class="td-content">
								<select name="SFBZ" class="form-control" cacheTable="TB_ZY_SFBZ"
										quick-config="label:'身份编制', validateProxy:'length', length: '2'">
								</select>
							</td>
						</tr>
					</table>
				</div>
				<div title="执业信息" class="easyui-panel" data-options="collapsible:true" style="border-top: none; ">
					<table class="form-table">
						<tr>
							<td class="td-text">
								<label>执业证书编码</label>
							</td>
							<td class="td-content">
								<input name="PRACTICE_BM" type="text" placeholder="执业证书编码"
									   quick-config="label:'执业证书编码', validateProxy:'length', length: '15'"
									   class="form-control">
							</td>
							<td class="td-text">
								<label>执业类别</label>
							</td>
							<td class="td-content">
								<select name="PRACTICE_LBDM" class="form-control" cacheTable="TB_ZY_PRACTICE_LB"
										quick-config="label:'执业类别', validateProxy:'length', length: '2'">
								</select>
							</td>
							<td class="td-text">
								<label>执业级别</label>
							</td>
							<td class="td-content">
								<select name="PRACTICE_JBDM" class="form-control" cacheTable="TB_ZY_PRACTICE_JB"
										quick-config="label:'执业级别', validateProxy:'length', length: '2'">
								</select>
							</td>
						</tr>
						<tr>
							<td class="td-text">
								<label>执业范围</label>
							</td>
							<td class="td-content"  colspan="3">
								<input id="PRACTICE_FWDMS">
							</td>
							<td class="td-text">
								<label>是否多点执业</label>
							</td>
							<td class="td-content">
								<select id="PRACTICE_DDZY" name="PRACTICE_DDZY"
										quick-config="label:'是否多点执业', validateProxy:'length', length: '20'"
										class="form-control">
									<option value="0">否</option>
									<option value="1">是</option>
								</select>
							</td>
						</tr>
					</table>
				</div>
				<div title="多点执业机构" class="easyui-panel" data-options="tools:'#tt', collapsible:true"
					 style="border-top: none; ">
					<div id="tt">
						<span id="btnAddDdzy" href="javascript:void(0)" style="font-weight: bold; cursor: pointer; color: #2AC672;">添加执业机构</span>
					</div>
					<table class="layui-table" lay-skin="line">
						<colgroup>
							<col width="180">
							<col width="100">
							<col width="70">
							<col width="70">
							<col width="80">
						</colgroup>
						<thead>
						<tr>
							<th>机构名称</th>
							<th>科室</th>
							<th>签约开始日期</th>
							<th>签约结束日期</th>
							<th>操作</th>
						</tr>
						</thead>
						<tbody id="tableDdzyBody">
						</tbody>
					</table>
				</div>
			</form>
		</div>
	</div>
</div>
<script type="text/html" id="ddzyxxTr">
	<tr>
		<td field="YLJGMC"></td>
		<td field="KSMC"></td>
		<td field="QYKSRQ"></td>
		<td field="QYJSRQ"></td>
		<td>
			<a class="tableToolBarBtn" action="update" href="javascript:void(0)" title="修改" style="color: #00c297;">修改</a>
			<a class="tableToolBarBtn" action="delete" href="javascript:void(0)" title="删除" style="color: #00c297;">删除</a>
		</td>
	</tr>
</script>
</body>
</html>


